
$(document).ready(function(e) {
	var arr = ["#000","#F00","#FF0","#00F","#0F0"];
    var divNode = $("#d");
	divNode.css("width","100").height("100");
	divNode.click(function(){
		var index = parseInt(Math.random()*10,10);
		divNode.css("background-color",arr[index%4]);
		});
});